import { createRoot } from 'react-dom/client'


// 导入provider
import { RouterProvider } from 'react-router-dom'
// 导入router实例
import { router } from '@/router/index'

//测试接口
import { getInfo } from '@/apis/home'
getInfo().then(res => {
  console.log(res)
})

// <StrictMode>严格模式，会使代码执行两次
createRoot(document.getElementById('root')!).render(
  <RouterProvider router={router} />
)
